added test for time interval functions