SERVER-9502 fix assert code in unit test