Test that temporary directory is deleted after generation