         it "creates a DB document from a local file's information", (done) =>
             fs.writeFile filePath, 'hello', (err) =>
                 should.not.exist err
-                filesystem.createFileDoc filePath, false, (err, res) =>
+                filesystem.createFileDoc filePath, (err, res) =>
                     should.not.exist err
                     should.exist res.id
                     pouch.db.query 'file/byFullPath', key: "/#{fileName}", (err, res) =>

        it "updates DB documents when file has changed", (done) =>
            setTimeout =>
                fs.writeFile filePath, 'hello2', (err) =>
                    filesystem.createFileDoc filePath, false, (err, res) =>
                        pouch.db.query 'file/byFullPath', key: "/#{fileName}", (err, res) =>
                            should.not.exist err
                            should.exist res.rows[0].value

                        fs.existsSync(folderPath).should.be.true

                        pouch.folders.all (err, docs) ->
                            docs.rows.length.should.equal 5
                            done()


    describe "applyFileDBChanges", ->
