Write tests for the Timer functionality

Yay for TDD.