test-case to prevent regressions described in #10901.