test(frontend): upgrade mocha for promise support and fix async tests

Fixes #687.

@nchapman r?