Add a test for the Document constructor.