Improve tests on isBefore and isAfter between date and date/time values