Initial group by query validation test