new test for #7796, also improves a haddock perf

T149 is also an unexpected pass, but it's behaving
nondeterministically, so I'm not changing it for now