Add negative tests for MsgVersion.

This commit adds tests for the error paths when encoding and decoding
MsgVersion.