update mocha, fix tests
0.5.0