Add test cases for timer

Missing license header.