Improved tests for CredentialStore class to check correct ordering of credential methods