readtest fix

need to search for file not search for directory