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

TNL-543

@jimabramson @dan-f Please review
I know it isn't needed, but I thought it made the test case clearer to read. Perhaps I should just remove the default value.