added Model::compare_classes
added test of Model::compare_classes