Keep the file extension in the temporary copy and test that it exists