Ensure LMS passes correct group_id when querying content

TNL-23
get_threads is really supposed to be a module-private function, so we shouldn't write separate tests for it