Make iw.rejectanonymous work in tests