PermissionResourceTest fixed.