Improve manual window opening test case

Before window is closed, opener window is changes to load "testpage.html".
This is for testing that window.opener.location works.