Added unit tests for deserializer