immagino sia perchè testo inizialmente non ha valore, metti
on (release) {
testo = testo + 1;
}