Test compatibility

This improves compatibility of test suite with Travis, Python 2.5 and older libcurl versions.