Fixed and added test-case for next-tick events added by timers.