fixed scalar test in env_creds()