Transaction test code fixed

This fixes your pull request test code. Tests still skipped because fixing them will need figuring out other stuff that should work (multisig, hashForSignature, etc)

If you want, merge this to your branch, and https://github.com/bitpay/bitcore/pull/170 will update. Let me know if you do so. :)