anchor.diff:  
       SetupFun = build_download_file_setup_fun(MemRef, Content, Config),
       ValidateCallResultFun = build_rest_download_file_validate_call_fun(MemRef, Content, Config),
  -    VerifyFun = build_rest_download_file_verify_fun(MemRef, FileSize, Config),
  -
  -    DataSpec = #data_spec{
  -        optional = [<<"range">>],
  -        correct_values = #{
  -            <<"range">> => [
  -                {<<"bytes=10-20">>, ?HTTP_206_PARTIAL_CONTENT, [{10, 11}]},
  -                {<<"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},
  -                {<<"bytes=-15-10">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
  -                {<<"bytes=10-5">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
  -                {<<"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}
  -            ]
  -        }
  -    },
  +    VerifyFun = build_download_file_verify_fun(MemRef, FileSize, Config),
  +
  +    AllRangesToTest = [
  +        {<<"bytes=10-20">>, ?HTTP_206_PARTIAL_CONTENT, [{10, 11}]},
  +        {
  +            <<
  +                "bytes=",
  +                (integer_to_binary(FileSize - 100))/binary,
  +                "-",
  +                (integer_to_binary(FileSize + 100))/binary
  +            >>,
  +            ?HTTP_206_PARTIAL_CONTENT, [{FileSize - 100, 100}]
  +        },
  +        {<<"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},
  +        {<<"bytes=-15-10">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
  +        {<<"bytes=10-5">>, ?HTTP_416_RANGE_NOT_SATISFIABLE},
  +        {<<"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(Config, [
           #scenario_spec{
  
positive.code:             verify_fun = VerifyFun,
  
              data_spec = api_test_utils:add_file_id_errors_for_operations_available_in_share_mode(
                  DirGuid, undefined, DataSpec#data_spec{
                      bad_values = [{bad_id, DirObjectId, {rest, ?ERROR_POSIX(?EISDIR)}}]
                  }
              )
  
negative.code:                 true ->
                      api_test_utils:assert_distribution(Providers, [FileGuid], [{P1Node, FileSize}]);
                  false ->
                      case maps:get(<<"range">>, utils:ensure_defined(Data, #{}), undefined) of
                          undefined ->
                              api_test_utils:assert_distribution(Providers, [FileGuid], [
                                  {P1Node, FileSize}, {DownloadNode, FileSize}
  