Restructured ENV feature a bit, added testsuite for whitebox and blackbox testing