tests setInterval function to move second hand