Add tests & fix repoManager::isExists