         do {
             // Check root folder
             let files = try _fm.contentsOfDirectoryAtPath(_downFolderPath)
-            XCTAssertEqual(files, [".bsync", "file.txt", "sub"])
+            XCTAssertEqual(files, [".bsync", "newfile.txt", "sub"])
             // Check root file content
-            let content = try String(contentsOfFile: _downFilePath)
+            let content = try String(contentsOfFile: _downFolderPath + _newFileName)
             XCTAssertEqual(content, _fileContent2)
             // Check subfolder
             let subFolderPath = _downFolderPath + "sub/"

    
    private var _treeName = ""
    private var _upFolderPath = ""
    private var _upFilePath = ""
    private var _fileContent1 = ""
    private var _fileContent2 = ""
    
    private var _distantTreeURL = NSURL()
    
    private var _downFolderPath = ""
    private var _downFilePath = ""
    
    private static var _upDirectives = BsyncDirectives()
    private static var _downDirectives = BsyncDirectives()

    // MARK: 3 - Edit and synchronize
    func test301_Edit_existing_file() {
        do {
            try _fileContent2.writeToFile(_upFolderPath + _fileName, atomically: true, encoding: Default.STRING_ENCODING)
        } catch {
            XCTFail("\(error)")
        }
