anchor.diff:      OpenDataXrootdServerDomain = lists_utils:random_element([undefined, ?XROOTD_SERVER_DOMAIN]),
       oz_test_utils:set_env(Config, open_data_xrootd_server_domain, OpenDataXrootdServerDomain),
   
  -    BagitUploaderWorkflowSchemaId = lists_utils:random_element([undefined, binary_to_list(str_utils:rand_hex(20))]),
  -    oz_test_utils:set_env(Config, bagit_uploader_workflow_schema_id, BagitUploaderWorkflowSchemaId),
  +    ExpectedBagitUploaderWorkflowSchemaId = case rand:uniform(2) of
  +        1 ->
  +            % setting the env variable to undefined or a workflow schema Id that
  +            % does not exist should both result in null value in Onezone configuration
  +            InvalidOrUndefinedAtmWorkflowSchemaId = lists_utils:random_element([
  +                undefined,
  +                binary_to_list(str_utils:rand_hex(20))
  +            ]),
  +            oz_test_utils:set_env(Config, bagit_uploader_workflow_schema_id, InvalidOrUndefinedAtmWorkflowSchemaId),
  +            null;
  +        2 ->
  +            AtmInventoryId = ozt_atm_inventories:create(),
  +            AtmWorkflowSchemaId = ozt_atm_workflow_schemas:create(AtmInventoryId),
  +            oz_test_utils:set_env(Config, bagit_uploader_workflow_schema_id, binary_to_list(AtmWorkflowSchemaId)),
  +            AtmWorkflowSchemaId
  +    end,
   
       #{
           <<"name">> => OZName,
  
positive.code: init_per_suite(Config) ->
      ssl:start(),
      hackney:start(),
      [{?LOAD_MODULES, [oz_test_utils]} | Config].
  
  
  
  
negative.code:             undefined -> null;
              Url -> list_to_binary(Url)
          end,
          <<"bagitUploaderWorkflowSchemaId">> => ExpectedBagitUploaderWorkflowSchemaId
      }.
  
  
  