Updated CURL error test