updated changes.txt and added test for upsert using updateDocuments