add done parameter to test. now test fails and temp file is not deleted. back to square one