Test fix.
Introduce a credentials type in resources so PasswordCredentials can be moved back to core.