added unit tests for deleting documents