check that the loaded class subclasses the model