Testing return codes for granting and revoking roles