Adding group by tests