Fix test harness env var check