fix the tests to set a basedir explicitly