Add a test for the Document constructor.
Add check for the primary interface.
Test that the Document constructor returns an XML document.
Test the URL parser's encoding override with the Document constructor.
Don't use utf-8 in Document-constructor.html.
Merge pull request #391 from Ms2ger/Document-constructor

Add a test for the Document constructor; r=zcorpan