Error case added for deserialize_nothing
encode and decode are in the text_encoding module
Unit test added for the case where the connection is lost when reading a
line
Unit test coverage for command errors in iter_lines