Add negative tests for MsgInv.

This commit adds tests for the error paths when encoded and decoding
MsgInv.