added code to test the SerialTimer class