test on document.open()