test_file extractor
some improvement