Added revoking of permissions of roles to deletion of roles. Fixed the delete roles test.