fix CurlClient and StreamClient tests