Tests: setInterval and setTimeout