Pep8 tests
Allow datetime to be serialised to json