Fixed test to work with recent libcurl versions