Added includeGroups/excludeGroups feature (incl. basic unit tests)