Fix test in repo mode