Added tests to time classes