fix mocha tests

fixes https://github.com/bitpay/copay/issues/2144