Fixed test
Crappy group by max implementation