Working on unit tests for CredentialManager class