Add regression test for #11303