add test on res value in recoverDocs