Added environment setting to run wrapper, added reinstall tests