fix tests for requests==0.14.2 and requests>=1.0.3