Che e` 'sta roba?
test=="false"

Questo e` un confronto, che ritorna true o false, ma nonlo prendi.
Forse volevi mettere solamente:
test="false";