anchor.diff:              client_spec = ?CLIENT_SPEC_FOR_SPACE_KRK_PAR,
   
               setup_fun = SetupFun,
  -            prepare_args_fun = build_rest_download_file_prepare_args_fun(MemRef, normal_mode),
  +            prepare_args_fun = build_rest_download_prepare_args_fun(MemRef, normal_mode),
               validate_result_fun = ValidateCallResultFun,
               verify_fun = VerifyFun,
   
               data_spec = api_test_utils:add_file_id_errors_for_operations_available_in_share_mode(
                   DirGuid, undefined, #data_spec{
                       optional = [<<"range">>],
  -                    correct_values = #{<<"range">> => RangesToTestPart1},
  -                    bad_values = [{bad_id, DirObjectId, {rest, ?ERROR_POSIX(?EISDIR)}}]
  +                    correct_values = #{<<"range">> => RangesToTestPart1}
                   }
               )
           },
  
positive.code:         {<<"bytes=100-300,500-500,-300">>, ?HTTP_206_PARTIAL_CONTENT, [
              {100, 201}, {500, 1}, {FileSize - 300, 300}
          ]},
  
          {<<"unicorns">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
          {<<"bytes:5-10">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
          {<<"bytes=5=10">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
  
negative.code:         {<<"bytes=-5-">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
          {<<"bytes=10--5">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
          {<<"bytes=10-15-">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
          
          {<<"bytes=5000000-5100000">>, ?HTTP_416_RANGE_NOT_SATISFIABLE}
      ],
      AllRangesToTestNum = length(AllRangesToTest),
      
      % Randomly split range to test so to shorten test execution time by not
      % repeating every combination several times
      RangesToTestPart1 = lists_utils:random_sublist(
          AllRangesToTest, AllRangesToTestNum div 2, AllRangesToTestNum div 2
      ),
      RangesToTestPart2 = AllRangesToTest -- RangesToTestPart1,
      
      ?assert(onenv_api_test_runner:run_tests([
          #scenario_spec{
              name = <<"Download file using rest endpoint">>,
  