Refactored DateSerializerTest and DateDeserializerTest.