fixed issue with TEST_ROOT not being exported into setsid environment