Test new document creation