Fixed assertion in testSerialize in Unit Test of Serializer class