Remove addChange dependency from test
Add error for missing change output index
Test toMsgTx generation