test dates with greaterThan and lessThan