Fix test to behave properly after SERVER-14527