Use group_id if present when getting user thread and comment counts.

TNL-543

@jimabramson @dan-f Please review
my mistake, i see most of that is covered in the previous test, though nonzero threads and zero comments is still an untested cases.