test entity classes; moved config under tests.
start testing Dao and EntityObject.
use fetch_class for determining which method to use (perform or fetchAll).
allow to use object retrieval in Query.