add tests for comparing dates