Having the list filtered in a single place will result in requiring a single test... right now the test only works for check_files and the code from main is not tested.