Adding tests for data.loadPermissions