TimePeriod unit test