converted date serialization to ISO8601
tests refactored to use let