modified makeRepo to check existence of a repo with the same name, and wrote a test for this.