Open and close popup test