Fixing bug with mocha:app