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.
remove script from framework.
Fixed typo
Fixed PHPDoc
Merge pull request #480 from pborreli/typos

Fixed Typos
Merge pull request #475 from philsturgeon/patch-1

More having tests