add some date tests, and fix an error they found