Improved serializer and deserializer tests. Added check for null date in serialize method.