improved ApiEntity by manually setting api-path; added test for count select in querybuilder;