There were two issues. The first was the file envfile.txt was being created in the wrong directory and this was relied on by the tests. The second was an issue in -test-path when run via transport other than fs.