tests: improve roundtrip test diagnostics.