auto-mark old msgs as read when join thread, refactor comm tests (bug 931223)