More having tests

This shows that having works without group by (nobody on IRC today seemed to think that was a thing) and tests that aliases work as expected - which they dont seem to be in reality.
Merge pull request #475 from philsturgeon/patch-1

More having tests