basedir test fixed