Add the test. Re #10031