Added test for range dates for #243