Added id-range and date-range test