             expectation.fulfill()
         }
         
-        dispatch_sync(sut.cacheQueue) {
-            self.waitForExpectationsWithTimeout(0, handler: nil)
-        }
+        self.waitForExpectationsWithTimeout(1, handler: nil)
     }
     
     func testFetchData_Inexisting_NilFailureBlock() {

    }
    
    func testFetchData_UpdateAccessDate() {
        let data = NSData.dataWithLength(19)
        let key = self.name
        sut.setData(data, key : key)

        dispatch_sync(sut.cacheQueue) {
            let attributes = try! fileManager.attributesOfItemAtPath(path)
            let accessDate = attributes[NSFileModificationDate] as! NSDate
            XCTAssertTrue(accessDate.laterDate(now).isEqualToDate(now))
        }
        
        sut.updateAccessDate(data, key: key)
