refactored groups controller tests