Test cases for date range handling