This commit adds tests for the error paths when encoding and decoding MsgTx. This commit also achieves 100% test coverage.
Rather than having to repeat the same data for positive and negative tests, make the same test data available to both.