better error message for invalid groups
update debug name
100% test coverage!