Updated test for PermissionManager