Test passing `group_id` in thread creation