changed event handler to doTest rather than init

worked anyway, but was a mistake