Fix creating TimeInterval field in test.