date range detection test