test: tracing and test case for #5347 (#5348)

not a fix, unfortunately, just recording the test.
2 files changed