         env = clone process.env
         env.COZY_DESKTOP_DIR = folders[i]
         env.NODE_ENV = 'test'
+        env.DEBUG = 'true'
         opts =
             cwd: folders[i]
             env: env



deviceNames = [
    "test#{faker.commerce.color()}1"
    "test#{faker.commerce.color()}2"
]

folders = [
    path.join Cozy.parentDir, 'one'
    path.join Cozy.parentDir, 'two'
]

logs = [
    path.join Cozy.parentDir, 'one.log'
    path.join Cozy.parentDir, 'two.log'
]



    app = new App folders[i]
    app.askPassword = (callback) ->
        callback null, Cozy.password
    app.addRemote Cozy.url, folders[i], deviceNames[i], (err) ->
        app.pouch.db.destroy()
        app.pouch.db = null
        callback err

# Remove a device from cozy
removeRemoteDevice = (i, callback) ->
