[PATCH v4 2/7] test thread breakage when messages are removed and re-added