Test window.open