Add negative tests for MsgBlock.

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