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.
Merge pull request #162 from olegabr/bug-94

Fixed tests for GroupBy and Having clauses