Refactored the timer test to make it easier to read.