tests for lost connection at END-OF-MESSAGE and RSET

Solves #26, thanks for contributing!