test for close window on submit