tests for setInterval