fixup env variables and imports for testsuite