groups.* handling + tests