Wrong bug number

the previous commit added a testcase for #8766, not #8374 -- too many
tabs open.