better search permission integration tests