Tests that unique file-input IDs prevent the second upload from sending the first image's file, and that stale dialog DOM is cleaned up on close.