add path method to GitRepository and improve test
create git repo in factory