Add tests for the mothods of timer