Re #10031. Fixed the unit test.