moved the setCredentialsTest