This commit adds tests for the error paths when encoded and decoding MsgHeaders. Also, while here modify the casing of the local vars to be consistent.