anchor.diff:          opt_archives:list(P2Node, UserSessIdP2, DatasetId, #{offset => 0, limit => 10}), ?ATTEMPTS).
   
   
  -iterate_over_archives_test_base(ArchiveCount, ListingMethod, Limit) ->
  -    [P1Node] = oct_background:get_provider_nodes(krakow),
  -    UserSessIdP1 = oct_background:get_user_session_id(user1, krakow),
  -
  -    #object{dataset = #dataset_object{
  -        id = DatasetId,
  -        archives = ArchiveObjects
  -    }} = onenv_file_test_utils:create_and_sync_file_tree(user1, ?SPACE,
  -        #file_spec{dataset = #dataset_spec{archives = ArchiveCount}}),
  -
  -    lists_utils:pforeach(fun(#archive_object{id = ArchiveId, config = Config}) ->
  -        ?assertMatch({ok, #archive_info{
  -            state = ?ARCHIVE_PRESERVED,
  -            config = Config
  -        }}, opt_archives:get_info(P1Node, UserSessIdP1, ArchiveId), ?ATTEMPTS)
  -    end, ArchiveObjects),
  -
  -    % sort archives by their indices
  -    ExpArchiveIdsAndIndices = lists:sort(fun(A1, A2) ->
  -        A1#archive_object.index =< A2#archive_object.index
  -    end, ArchiveObjects),
  -    ExpArchiveIds = [Id || {Id, _} <- ExpArchiveIdsAndIndices],
  +iterate_over_archives_test_base(Config, ListingMethod, Limit) ->
  +    [P1Node] = oct_background:get_provider_nodes(krakow),
  +    UserSessIdP1 = oct_background:get_user_session_id(user1, krakow),
   
       ListingOpts = case ListingMethod of
           offset -> #{offset => 0, limit => Limit};
           start_index -> #{start_index => <<>>, limit => Limit}
       end,
   
  +    ExpArchiveIds = ?config(exp_archive_ids, Config),
  +    DatasetId = ?config(dataset_id, Config),
       check_if_all_archives_listed(ExpArchiveIds, P1Node, UserSessIdP1, DatasetId, ListingOpts).
  -
   
   %===================================================================
   % SetUp and TearDown functions
  
positive.code: 
  
  all() -> [
      {group, time_mock_parallel_tests},
      {group, parallel_tests},
      {group, iterate_parallel_tests},
      {group, sequential_tests}
  ].
  
  -define(ATTEMPTS, 300).
  
negative.code:     oct_background:end_per_suite(),
      dir_stats_test_utils:enable_stats_counting(Config).
  
  init_per_group(parallel_tests, Config) ->
      Config2 = oct_background:update_background_config(Config),
      lfm_proxy:init(Config2, false);
  init_per_group(iterate_parallel_tests, Config) ->
      Config2 = oct_background:update_background_config(Config),
      Config3 = prepare_archive_iteration_test_environment(Config2, 100),
      lfm_proxy:init(Config3, false);
  init_per_group(_Group, Config) ->
      ok = time_test_utils:freeze_time(Config),
      Config2 = oct_background:update_background_config(Config),
  