testing check_model_consistency and subfunctions