anchor.diff:          end
       ),
       init_per_testcase(default, Config);
  -    
  -init_per_testcase(Case, Config) when 
  +
  +init_per_testcase(Case, Config) when
       Case =:= quota_updated_on_gui_upload;
       Case =:= failed_gui_upload_test ->
       Workers = ?config(op_worker_nodes, Config),
       ok = test_utils:mock_new(Workers, cow_multipart),
       ok = test_utils:mock_new(Workers, cowboy_req),
  -    ok = test_utils:mock_expect(Workers, cow_multipart, form_data, 
  +    ok = test_utils:mock_expect(Workers, cow_multipart, form_data,
           fun(_) -> {file, ok, ok, ok} end),
  -    ok = test_utils:mock_expect(Workers, cowboy_req, read_part_body, 
  -        fun F(#{left := 1}=Req, Opts) -> 
  +    ok = test_utils:mock_expect(Workers, cowboy_req, read_part_body,
  +        fun F(#{left := 1}=Req, Opts) ->
                   F(maps:remove(left, Req), Opts);
  -            F(#{left := Left, size := Size} = Req, _Opts) -> 
  +            F(#{left := Left, size := Size} = Req, _Opts) ->
                   {more, crypto:strong_rand_bytes(Size), Req#{left => Left-1}};
  -            F(#{size := Size}=Req, _Opts) -> 
  +            F(#{size := Size}=Req, _Opts) ->
                   {ok, crypto:strong_rand_bytes(Size), Req#{done => true}}
           end),
  -    ok = test_utils:mock_expect(Workers, cowboy_req, read_part, 
  +    ok = test_utils:mock_expect(Workers, cowboy_req, read_part,
           fun (#{done := true} = Req) -> {done, Req}; (Req) -> {ok, [], Req} end),
       init_per_testcase(default, Config);
   
  
positive.code:     ?assertMatch({ok, _}, lfm_proxy:stat(P1, SessId(P1), {guid, FileGuid}), ?ATTEMPTS),
      ?assertMatch({ok, _}, write_to_file(P1, SessId(P1), {guid, FileGuid}, 0, crypto:strong_rand_bytes(SpaceSize))),
      ?assertMatch(0, available_size(SupportingProvider, SpaceId), ?ATTEMPTS),
      
      ExpectedMessage = #'ServerMessage'{
          message_body = {events, #'Events'{
              events = [#'Event'{
  
negative.code:     test_utils:mock_unload(Workers, cowboy_req),
      test_utils:mock_unload(Workers, cow_multipart),
      end_per_testcase(all, Config);
  
  
  end_per_testcase(_Case, Config) ->
      Workers = ?config(op_worker_nodes, Config),
  