Fix the tests running on Babel==1.0

The datetime format has slightly changed with Babel 1.0 which causes several test failures. This PR fixes those failures (while introducing ones if the tests are run on earlier versions.)