SERVER-5228 SERVER-8104 fix unit test as access in reduce function is restricted again