Update env checking syntax
Add test example