check_model_function tested and working