tests for date/time range