Fix unit tests
Unregister tick handler after run