tests for selecting groups