Small refactoring
Index checking was added to recovery-dc test