Update tests.py

isoformat() is now properly dumped