Consolidate and expand document.body tests.