[PATCH v4 18/19] test: Add a section for closing the connection