Added unit tests to check the deletion of documents.
Merge remote-tracking branch 'origin/master'