Add test cases for timer