Add regression test for GH-11682 This bug was already fixed via 15ff830, but we really need more test coverage. Co-authored-by: Arne Blankerts <arne@blankerts.de>