added tests for deserialization