Fix typo in date test. Closes gh-846