             options = { appId, version }
             account.migrateOldAppStorageIfExists options, (err, newStorage) ->
               expect(err).to.not.exist
-              console.log newStorage
               expect(newStorage).to.be.an 'object'
               expect(newStorage.bongo_.constructorName).to.be.equal 'JCombinedAppStorage'
               expect(newStorage.accountId).to.be.deep.equal account._id

                expect(storage._id.toString()).to.be.equal appStorage._id.toString()
                expect(storage.accountId).to.be.deep.equal appStorage.accountId
                expect(storage.storage[appId]).to.be.deep.equal appStorage.storage[appId]
                queue.next()

            -> done()

            expect(appStorage.bongo_.constructorName).to.be.equal 'JCombinedAppStorage'
            expect(appStorage.accountId).to.be.deep.equal account._id
            expect(appStorage.storage[appId]).to.be.an 'object'
            expect(appStorage.storage[appId].data).to.be.an 'object'
            expect(appStorage.storage[appId].data).to.be.empty
            done()


