     } catch {
       XCTFail("Faild to convert dictionary to JSON")
     }
-    waitForExpectations(timeout: 10.0, handler: nil)
+    waitForExpectations(timeout: 20.0, handler: nil)
   }
   
   func testPushNotification() {

      XCTAssertNil(error)
      // Only works with physical device, so we expect a bad status
      if let httpResponse = response as? HTTPURLResponse {
        XCTAssertEqual(httpResponse.statusCode, 500)
      }
      pushExpectation.fulfill()
    }.resume()

      XCTFail("Failed to convert image dictionary to binary data.")
    }

    waitForExpectations(timeout: 20.0, handler: nil)
  }
  
  func testGettingImagesForUser() {
