fix serialization / deserialization test