Add negative tests for MsgPing.

This commit add tests the error paths when encoding and decoding MsgPing.