fully rely on modify_env to restore original environment for tests

@wpoely86: required to make unit tests pass using Lmod or modulecmd.tcl, see e.g. https://jenkins1.ugent.be/view/EasyBuild%20(boegel)/job/easybuild-framework_unit-test_boegel_test-lmod/59/