will work on another PR to address this. I guess tests are due for

purge_empty_groups_errata -> , which accepts a bunch of packages and wipes out errata and packagroups the do not have a single package that  belong to the repo..

parckage_groups_search has already been covered.