Please refactor the timeout-related tests with the awesome sinon fake timers [1].

We didn't use sinon at the time this file was created, but using the fake timers will make your test both more readable and more reliable :)

[1] http://sinonjs.org/docs/#clock