Wrote unit tests for CredentialManager class