anchor.diff:  
       %then
       ?assertMatch({ok, 200, _, <<"[]">>}, do_request(WorkerP1, <<"index">>, get, [user_1_token_header(Config)], [])).
  +
  +create_list_index(Config) ->
  +    [_WorkerP2, WorkerP1] = ?config(op_worker_nodes, Config),
  +    Function =
  +        <<"function (meta) {
  +              if(meta['onedata_json'] && meta['onedata_json']['meta'] && meta['onedata_json']['meta']['color']) {
  +                  return meta['onedata_json']['meta']['color'];
  +              }
  +              return null;
  +        }">>,
  +    ?assertMatch({ok, 200, _, <<"[]">>}, do_request(WorkerP1, <<"index">>, get, [user_1_token_header(Config)], [])),
  +
  +    % when
  +    {ok, 303, Headers, _} = ?assertMatch({ok, 303, _, _},
  +        do_request(WorkerP1, <<"index?space_id=space1&name=name">>, post, [user_1_token_header(Config), {<<"content-type">>,<<"application/javascript">>}], Function)),
  +    <<"/api/v3/oneprovider/index/", Id/binary>> = proplists:get_value(<<"location">>, Headers),
  +
  +    % then
  +    {ok, _, _, ListBody} = ?assertMatch({ok, 200, _, _}, do_request(WorkerP1, <<"index">>, get, [user_1_token_header(Config)], [])),
  +    IndexList = json_utils:decode_map(ListBody),
  +    ?assertMatch([#{<<"spaceId">> := <<"space1">>, <<"name">> := <<"name">>, <<"indexId">> := Id, <<"spatial">> := false}], IndexList),
  +    ?assertMatch({ok, 200, _, _},
  +        do_request(WorkerP1, <<"index/", Id/binary>>, get, [user_1_token_header(Config), {<<"accept">>, <<"application/javascript">>}], [])),
  +
  +    % when
  +    {ok, 303, _, _} = ?assertMatch({ok, 303, _, _},
  +        do_request(WorkerP1, <<"index?space_id=space1&name=name2">>, post,
  +            [user_1_token_header(Config), {<<"content-type">>,<<"application/javascript">>}], Function)),
  +
  +    % then
  +    {ok, _, _, ListBody2} = ?assertMatch({ok, 200, _, _}, do_request(WorkerP1, <<"index">>, get,
  +        [user_1_token_header(Config)], [])),
  +    IndexList2 = json_utils:decode_map(ListBody2),
  +    ?assertMatch([#{}, #{}], IndexList2).
   
   create_geospatial_index(Config) ->
       [_WorkerP2, WorkerP1] = ?config(op_worker_nodes, Config),
  
positive.code:             [user_1_token_header(Config), {<<"accept">>,<<"application/rdf+xml">>}], [])),
      ?assertMatch(<<"some_xml">>, Body).
  
  create_list_index(Config) ->
      [_WorkerP2, WorkerP1] = ?config(op_worker_nodes, Config),
      Function =
          <<"function (meta) {
                if(meta['onedata_json'] && meta['onedata_json']['meta'] && meta['onedata_json']['meta']['color']) {
                    return meta['onedata_json']['meta']['color'];
                }
                return null;
          }">>,
      ?assertMatch({ok, 200, _, <<"[]">>}, do_request(WorkerP1, <<"index">>, get, [user_1_token_header(Config)], [])),
  
      % when
      {ok, 303, Headers, _} = ?assertMatch({ok, 303, _, _},
          do_request(WorkerP1, <<"index?space_id=space1&name=name">>, post, [user_1_token_header(Config), {<<"content-type">>,<<"application/javascript">>}], Function)),
      <<"/api/v3/oneprovider/index/", Id/binary>> = proplists:get_value(<<"location">>, Headers),
  
      % then
      {ok, _, _, ListBody} = ?assertMatch({ok, 200, _, _}, do_request(WorkerP1, <<"index">>, get, [user_1_token_header(Config)], [])),
      IndexList = json_utils:decode_map(ListBody),
      ?assertMatch([#{<<"spaceId">> := <<"space1">>, <<"name">> := <<"name">>, <<"indexId">> := Id, <<"spatial">> := false}], IndexList),
      ?assertMatch({ok, 200, _, _},
          do_request(WorkerP1, <<"index/", Id/binary>>, get, [user_1_token_header(Config), {<<"accept">>, <<"application/javascript">>}], [])),
  
      % when
      {ok, 303, _, _} = ?assertMatch({ok, 303, _, _},
          do_request(WorkerP1, <<"index?space_id=space1&name=name2">>, post,
              [user_1_token_header(Config), {<<"content-type">>,<<"application/javascript">>}], Function)),
  
      % then
      {ok, _, _, ListBody2} = ?assertMatch({ok, 200, _, _}, do_request(WorkerP1, <<"index">>, get,
          [user_1_token_header(Config)], [])),
      IndexList2 = json_utils:decode_map(ListBody2),
      ?assertMatch([#{}, #{}], IndexList2).
  
  remove_index(Config) ->
      [_WorkerP2, WorkerP1] = ?config(op_worker_nodes, Config),
      Function =
  
negative.code:         set_get_json_metadata_id,
          set_get_rdf_metadata,
          set_get_rdf_metadata_id,
          remove_index,
          create_list_index,
          create_geospatial_index,
          query_geospatial_index,
          set_get_json_metadata_inherited,
  