       path += "?" + query
     }
     
-    var requestOptions: [ClientRequest.Options] = []
-    requestOptions.append(.method(method))
-    requestOptions.append(.schema("http://"))
-    requestOptions.append(.hostname("127.0.0.1"))
-    requestOptions.append(.port(8090))
-    requestOptions.append(.path(path))
+    var requestOptions: [ClientRequest.Options] = [.method(method), .hostname("127.0.0.1"), .port(8090), .path(path)]
     var headers = [String:String]()
     headers["Content-Type"] = "application/json"
     headers["Authorization"] = value(forHTTPHeaderField: "Authorization")
-    print("t: \(headers)")
     requestOptions.append(.headers(headers))
     
     let req = HTTP.request(requestOptions) { resp in
+      print("in Closure with response: \(resp)")
       if let resp = resp, resp.statusCode == HTTPStatusCode.OK || resp.statusCode == HTTPStatusCode.accepted {
         do {
           var body = Data()
           try resp.readAllData(into: &body)
-          let jsonResponse = JSON(data: body)
-          print("BluePic-Server response: \(jsonResponse)")
           fn(body)
         } catch {
           print("Bad JSON document received from BluePic-Server.")

        XCTAssertNotEqual(httpResponse.statusCode, 200)
      }
      pushExpectation.fulfill()
    }.resume()
    waitForExpectations(timeout: 15.0, handler: nil)
  }


          ("testGettingUsers", testGettingUsers),
          ("testGettingSingleUser", testGettingSingleUser),
//          ("testCreatingUser", testCreatingUser),
          ("testPushNotification", testPushNotification)
      ]
  }

