resolving the last TODO, implementing some deep inspection tests for get_groups()