added test for popupPage