added test for end time at current time