serializing datetime as desired, isoformat; added test