file search test refactored