add test for changing the basedir
change baseDir behavior, update tests