improve date tests (fix #483)

The original pull had a typo, and is very outdated - this is just updating @jabley's code to use the new format.