test presence of env variable before testing it