group by key test