Add a test for the document.body setter when there's no root element

and some cleanup in the file.

http://html5.org/tools/web-apps-tracker?from=7799&to=7800