Fixed tests for GroupBy and Having clauses

Objects returned by them has no fields initialized, except virtual ones.
It is true for postgresql database. And it is true in general sql.