adding sync and async tests for grant and revoke