Tests for CredentialsProvider