Add tests to ensure discussion thread creation works as expected with multiple cohorts

CC @antoviaque @mattdrayer