This commit adds tests for the error paths when encoding and decoding MsgVersion.
Rather than having to repeat the same data for positive and negative tests, make the same test data available to both.