MAINT: Compare datetime in test utils instead of integer.

Reduce dependency on date_utils, and improve legibility on failing
test.