tests added for getDateRage