Test for listening to the popup's exit event