Add a test for adding a document to the index.