Re #9958. Fix unit test.