Added test & fixed orderBy alias.
Table name calculation.
Class accessors.
A hacky way of getting objects.
Fixed a few minor issues with accessor/tests.