unit test and fix for stopping and starting timers