CanDeleteAndUpdateDocumentByIndex test.
Refactoring.
CanSwitchDatabases test.