Add is-path-repo, clean up/add tests