test_model_validation and validate