Add test for filtering file list to text files and code to pass the
test.