Test for document.
More document tests and domain methods.