Testing creating a document