Added serializer unit test