This tests that document.scripts works correctly.