fix ratchet serialization test