complete Testcoverage for DocumentIndexRestRepository