anchor.diff:      SpaceId = str_utils:rand_hex(32),
       Node = oct_background:get_random_provider_node(paris),
   
  -    ExpLinks = populate_links(Node, SpaceId, Phase, LinksNum),
  +    AllAtmInventoryIds = [str_utils:rand_hex(32) || _ <- lists:seq(1, 5)],
  +    ListedAtmInventoryIds = lists_utils:random_element([
  +        all,
  +        lists_utils:random_element(AllAtmInventoryIds),
  +        lists_utils:random_sublist(AllAtmInventoryIds)
  +    ]),
  +    ExpLinks = populate_links(Node, SpaceId, Phase, AllAtmInventoryIds, ListedAtmInventoryIds, LinksNum),
   
       ListingOpts = case ListingMethod of
           offset -> #{offset => 0, limit => Limit};
           start_index -> #{start_index => <<>>, limit => Limit}
       end,
  -    ListedLinks = list_all_links_by_chunk(Node, ListingMethod, SpaceId, Phase, ListingOpts, []),
  -
  +    ListedLinks = list_all_links_by_chunk(
  +        Node, ListingMethod, SpaceId, Phase, ListedAtmInventoryIds, ListingOpts, []
  +    ),
       ?assertEqual(ExpLinks, ListedLinks).
   
   
  
positive.code:     Phase = lists_utils:random_element(?ATM_WORKFLOW_EXECUTIONS_PHASES),
  
      lists:foreach(fun(InvalidListingOpts) ->
          ?assertEqual(?EINVAL, list_links(KrkNode, SpaceId, Phase, InvalidListingOpts))
      end, [
          % Either offset or start_index must be specified
          #{}, #{limit => 10},
  
negative.code: -spec is_member(node(), od_space:id(), atm_workflow_execution:phase(), atm_workflow_execution:id()) ->
      boolean().
  is_member(Node, SpaceId, Phase, AtmWorkflowExecutionId) ->
      is_member(Node, SpaceId, Phase, all, AtmWorkflowExecutionId).
  
  
  %% @private
  -spec is_member(
      node(),
      od_space:id(),
      atm_workflow_execution:phase(),
      atm_workflow_executions_forest:tree_ids(),
      atm_workflow_execution:id()
  ) ->
      boolean().
  is_member(Node, SpaceId, Phase, TreeIds, AtmWorkflowExecutionId) ->
      lists:keymember(AtmWorkflowExecutionId, 1, list_all_links(Node, SpaceId, Phase, TreeIds)).
  
  
  %% @private
  -spec list_all_links(
      node(),
      od_space:id(),
      atm_workflow_execution:phase(),
      atm_workflow_executions_forest:tree_ids()
  ) ->
      atm_workflow_execution:listing().
  list_all_links(Node, SpaceId, Phase, TreeIds) ->
      list_links(Node, SpaceId, Phase, TreeIds, #{offset => 0}).
  
  
  %% @private
  