Add a test to expose https://github.com/richardkiss/pycoin/issues/57.
Fix https://github.com/richardkiss/pycoin/issues/57.