Added ``CredentialResolver`` tests.