Add tests for copying and deleting
Add deleteDocument to delete all leaf nodes