moved model comparison code to ModelComparator
adjusted tests that need to compare models to use class ModelComparator