Adapt CredentialsTest to askpass improvement