Update packages and fix mocha test