Fixed the tests for libcurl older than 7.21.2