anchor.diff:          <<"test3.domain.org">>
       ],
   
  -    {ok, Repos} = load_repos(RepoCfg),
  +    {ok, Repos} = process_repos(RepoCfg),
       {value, #{domain := Name, keys := KeyIds}} = lists:search(
           fun(#{domain := D}) -> D =:= <<"test3.domain.org">> end, Repos),
       ?assert(Name =:= <<"test3.domain.org">>),
       ?assert(KeyIds =:= default).
   
  -load_keys_adds_missing_key_definition_test() ->
  +process_keys_adds_missing_key_definition_test() ->
       RepoCfg = [
           #{domain => <<"test1.domain.org">>,
             keys => [#{id => <<"testkey1">>, path => <<"/">>}]},
  
positive.code:          load/2]).
  
  
  read(VarName, Defaults) ->
      case application:get_env(VarName) of
          {ok, {file, ConfigFile}} ->
              read_config_file(ConfigFile);
          {ok, ConfigMap} ->
              ConfigMap;
          undefined ->
              Defaults
      end.
  
  
  
negative.code:     {ok, lists:map(AddDefaultKeyId, RepoCfg)}.
  
  
  process_keys(KeyCfg, Repos, KeyLoader) ->
      try lists:map(KeyLoader, KeyCfg) of
          SpecifiedKeys ->
              ProcessDefaultKey = fun(R, {AccRepos, AccKeys}) ->
  