Add test case for opening a new window.