Test changes to allow overriding has_google_credentials.