Test for filtering by start and end time