Made changes to add test case for deserializing the objects