test the file in dir