adding unit test for Data Serializer