Add tests for group by with inline limit but without order by