Add test for group_by_tags

I can break it down if needed.
Yep.