Avoid timing issues by using fake timers