Tests that page.requestClose method runs beforeunload hooks. SUCCESS!