Copy test resource out to the temporary directory for each test