Fix PermissionTest