simplify findGitRoot, flesh out tests