Added test code for timer2.py