Add negative tests for Serialize/Deserialize funcs.

This commit adds tests for the error paths when serializing and
deserializing MsgBlock and MsgTx.