Improve datediff test

Fixes #954