Fixed env wrapper. Tests in testtree are called with empty environment.