Add test to verify the panel removal on confirmation