Use curlPerform in testing