refactoring to smaller methods, conditionally updating groups only if needed. started renaming/reorganizing tests to make their intent more clear.