This commit adds tests for the error paths when reading the initial message header and message payload from the wire.