Re #10172. Added a unit test.