The behavior change of document.open() requires these tests to be changed to account for the new spec behavior.