Add support for tests, and a TimeUtil test class.