Fix the default group by setting lazily.

Add specs.