Acceptance test state group by works on HSQLDB (sort on uid made the group by criteria fail)