Added test for verifyCredentials() and basis of configurability.