fixing grant and revoke for tests