anchor.diff:      lists:foreach(fun(TestedPerm) ->
           lists:foreach(fun(Node) ->
               try
  -                case ExpResult of
  -                    ok ->
  -                        % file_ctx record is not exported so it is impossible to match to it as a record
  -                        ?assertMatch(
  -                            FileCtx when is_tuple(FileCtx),
  -                            check_perms(Node, User, Guid, [TestedPerm], Config),
  -                            ?ATTEMPTS
  -                        );
  -                    ?EACCES ->
  -                        ?assertMatch(
  -                            ?EACCES,
  -                            check_perms(Node, User, Guid, [TestedPerm], Config),
  -                            ?ATTEMPTS
  -                        )
  -                end
  +                ?assertMatch(
  +                    ExpResult,
  +                    check_perms(Node, User, Guid, [TestedPerm], Config),
  +                    ?ATTEMPTS
  +                )
               catch _:Reason ->
                   ct:pal(
                       "PERMISSIONS TESTS FAILURE~n"
  
positive.code:     SessId = ?config({session_id, {User, ?GET_DOMAIN(Node)}}, Config),
      UserCtx = rpc:call(Node, user_ctx, new, [SessId]),
  
      rpc:call(Node, fslogic_authz, ensure_authorized, [
          UserCtx, file_ctx:new_by_guid(Guid), Perms
      ]).
  
  
  -spec for(pos_integer(), term()) -> term().
  
negative.code:     multi_provider_permission_cache_test/1,
      expired_session_test/1
  ]).
  % Export for use in rpc
  -export([check_perms/3]).
  
  all() ->
      ?ALL([
  