tests for dateRange and dateTimeRange
timeRange test and fixes