Fix user model test

The user validation errors only fire if there is a provider set. These
should probably check specially for "local". However, just giving the
test object a provider is enough to get the validations to work and
the tests to pass.