 		var returnCount = 0
 		_ = client.requestData(url: requestUrl, requestCacheMode: .notCacheResponse).subscribe(onNext: { _ in returnCount += 1 }, onCompleted: { exp.fulfill() })
 		
-		waitForExpectations(timeout: 0.01, handler: nil)
+		waitForExpectations(timeout: waitTimeout, handler: nil)
 		
 		XCTAssertEqual(returnCount, 1, "Should return data once from server")
 		XCTAssertEqual(0, try! FileManager.default.contentsOfDirectory(atPath: cacheDirectory.path).count, "Should not save data")

		var returnCount = 0
		_ = client.requestData(url: requestUrl).subscribe(onNext: { _ in returnCount += 1 }, onCompleted: { exp.fulfill() })
		
		waitForExpectations(timeout: 0.01, handler: nil)
		
		XCTAssertEqual(returnCount, 1, "Should return data only once")
	}

		
		let exp = expectation(description: "Should complete request")
		_ = client.requestData(url: requestUrl).subscribe(onCompleted: { exp.fulfill() })
		waitForExpectations(timeout: waitTimeout, handler: nil)
		
		let cachedData = try! Data(contentsOf: cacheDirectory.appendingPathComponent(requestUrl.sha1()))
		XCTAssertTrue(cachedData.elementsEqual(data), "Should cache data")
