add test for _basedir