fix message roundtrip unit test