fix for the dir test