fix test directory regular expression