     
     func testReconstructUrlWithDifferentHostThanClient() {
         let inputUrl = NSURL.init(string: "https://faulstraw.imgix.net/pika.jpg")
-        let generatedUrl = client.reconstruct(originalURL: inputUrl as! URL)
+        let generatedUrl = client.reconstruct(originalURL: inputUrl! as URL)
         let expectedUrl = "https://faulstraw.imgix.net/pika.jpg"
         
         XCTAssert(generatedUrl.absoluteString == expectedUrl)

    
    func testReconstructUrlWithSingleExistingParamAndOneNewParam() {
        let inputUrl = NSURL.init(string: "https://paulstraw.imgix.net/pika.jpg?w=200")
        let generatedUrl = client.reconstruct(originalURL: inputUrl as! URL, params: ["h": 200])
        let expectedUrl = "https://paulstraw.imgix.net/pika.jpg?w=200&h=200"
        
        XCTAssert(generatedUrl.absoluteString == expectedUrl)
    }
    
    func testReconstructUrlWithMultipleExistingParamsAndOneNewParam() {
        let inputUrl = NSURL.init(string: "https://paulstraw.imgix.net/pika.jpg?w=200&h=200")
        let generatedUrl = client.reconstruct(originalURL: inputUrl as! URL, params: ["fit": "crop"])
        let expectedUrl = "https://paulstraw.imgix.net/pika.jpg?w=200&h=200&fit=crop"
        
        XCTAssert(generatedUrl.absoluteString == expectedUrl)
    }
    
    func testReconstructUrlWithMultipleExistingParamsAndMultipleNewParams() {
        let inputUrl = NSURL.init(string: "https://paulstraw.imgix.net/pika.jpg?w=200&h=200")
        let generatedUrl = client.reconstruct(originalURL: inputUrl as! URL, params: ["fit": "crop", "invert": true])
        let expectedUrl = "https://paulstraw.imgix.net/pika.jpg?invert=1&w=200&h=200&fit=crop"
        
        XCTAssert(generatedUrl.absoluteString == expectedUrl)
    }
    
    func testReconstructUrlWithExistingParamOverriddenByNewParam() {
        let inputUrl = NSURL.init(string: "https://paulstraw.imgix.net/pika.jpg?w=200")
        let generatedUrl = client.reconstruct(originalURL: inputUrl as! URL, params: ["w": 300])
        let expectedUrl = "https://paulstraw.imgix.net/pika.jpg?w=300"
        
        XCTAssert(generatedUrl.absoluteString == expectedUrl)

    
    func testReconstructUrlWithSingleExistingParam() {
        let inputUrl = NSURL.init(string: "https://paulstraw.imgix.net/pika.jpg?w=200")
        let generatedUrl = client.reconstruct(originalURL: inputUrl! as URL)
        let expectedUrl = "https://paulstraw.imgix.net/pika.jpg?w=200"
        
        XCTAssert(generatedUrl.absoluteString == expectedUrl)
