added copy constructor for class TimeMock