Make CurlHandleTest compatibile with more recent versions of Curl

Error message has changed slightly.