Added setInterval/setTimeout test to test.js and fixed event leaking in timers.js