     
 //    resetDatabase()
     
+    if self.accessToken == "" {
+      let tokenFileName = "authToken"
+      let tokenFileURL = fileURL(directoriesUp: 1, path: tokenFileName)
+      do {
+        self.accessToken = try String(contentsOf: tokenFileURL)
+      } catch {
+        XCTFail("Could not get authToken from file.")
+      }
+    }
+    
     HeliumLogger.use()
     
     Kitura.addHTTPServer(onPort: 8090, with: serverController!.router)

  func testPostingImage() {
    
    let imageExpectation = expectation(description: "Post an image with server.")
    
    // get access token
    let tokenFileName = "authToken"
    let tokenFileURL = fileURL(directoriesUp: 1, path: tokenFileName)
  
    // find image
    let imageFileName = "city.png"

    
    let pingExpectation = expectation(description: "Hit ping endpoint and get simple text response.")
    
    URLRequest(forTestWithMethod: "GET", route: "ping", authToken: self.accessToken)
      .sendForTesting { data in
        
        let pingResult = String(data: data, encoding: String.Encoding.utf8)!
        XCTAssertTrue(pingResult.contains("Hello World"))
        pingExpectation.fulfill()
    }
    waitForExpectations(timeout: 10.0, handler: nil)
  }
