assert !@provider.valid? into provider_test.rb