Fix unittest for issue 10268.