Created mocha unit tests for the timer.