test for Role::getPermissions