Bug/wallet2

add tests to https://github.com/bitpay/copay/pull/1923