generic getInstance implementation for EntityModel, test adjustments