Update to automatically delete generated files at the end of the test. Resolves #1