enable extract destination to extract_file function
refactor tests for clean setup and teardown and testing extract_file