Fix flakey timeouts in testing.
Add option to deactivate timers in testing.