Fix tests for faraday 0.9.0

fixed tests to support Faraday 0.9.0