fix logic error in netstring_read_evbuffer; add new tests