Creates a Time class and tests for it