tests: better group resolution