Add basic grant query test