working serialization/deserialization tests