corrected env test