Test coverage for entity_class. Fixed bugs with class level entity_class on Page.