Remove soop

... and add some small tests (added while making everything work again without soop)

fixes https://github.com/bitpay/copay/issues/894
fixes https://github.com/bitpay/bitcore/issues/413
Ha ... this is a duplicate of the above function. Good catch.