     
     func testPerformanceExample() {
         // This is an example of a performance test case.
-        self.measureBlock {
+        self.measure {
             // Put the code you want to measure the time of here.
         }
     }

    
    func testDownload() {
        
        let asyncExpectation = expectationWithDescription("longRunningFunction")
        
        let url = "http://publications.gbdirect.co.uk/c_book/thecbook.pdf"
        
        let downloadURL = NSURL(string: url)
        
        XCTAssertNotNil(downloadURL)
        
        let documentDirectoryURL =  try! NSFileManager().URLForDirectory(.DocumentDirectory, inDomain: .UserDomainMask, appropriateForURL: nil, create: true)

        XCTAssertNotNil(documentDirectoryURL)
        

                asyncExpectation.fulfill()
        }
        
        self.waitForExpectations(timeout: 60) { error in
            
            XCTAssertNil(error, "Something went horribly wrong")
            
