Add some basic tests for the Timer class.

This requires mocking the Util class, to provide an interface that
does not actually depend on getting the actual time.