improving env test