anchor.diff:  %% @doc Setup test users' sessions on server
   %%--------------------------------------------------------------------
   -spec setup_session(Worker :: node(), [#user_config{}], Config :: term()) -> NewConfig :: term().
  -setup_session(_Worker, [], Config) ->
  +setup_session(Worker, [], Config) ->
  +    final_file_meta_mock_setup(Worker),
       Config;
   setup_session(Worker, [{_, #user_config{id = UserId, spaces = Spaces,
       macaroon = Macaroon, groups = Groups, name = UserName}} | R], Config) ->
  
positive.code:         reuse_or_create_session, [SessId, fuse, Iden, Auth, []])),
      Ctx = rpc:call(Worker, user_ctx, new, [SessId]),
      {ok, _} = rpc:call(Worker, od_user, fetch, [#token_auth{macaroon = Macaroon}]),
      [
          {{spaces, UserId}, Spaces},
          {{groups, UserId}, Groups},
  
negative.code:         (ModelName, Method, Level, Context, ReturnValue) ->
              meck:passthrough([ModelName, Method, Level, Context, ReturnValue]),
              Self ! onedata_user_after
      end).
  
  %%--------------------------------------------------------------------
  %% @private
  %% @doc Ends mocking of file_meta module to disable not wanted modifications.
  %%--------------------------------------------------------------------
  -spec final_file_meta_mock_setup(Workers :: node() | [node()]) -> ok.
  final_file_meta_mock_setup(Workers) ->
      test_utils:mock_expect(Workers, file_meta, 'after', fun
          (ModelName, Method, Level, Context, ReturnValue) ->
              meck:passthrough([ModelName, Method, Level, Context, ReturnValue])
      end),
      test_utils:mock_unload(Workers, [od_user]).