support CurlFile in tests