Added a few tests on Env
code indentation and simplified Env::replaceAllOccurences