add test for file extraction