change documentNodeId not to be needed for creating a document and adjusted tests