Re #9731. Fix unit test.