Add negative tests for MsgGetData.

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