test date comparisons with is.equal