Fix test for the Repository controller.

Here I added mocked implementation for actual GIT/Mercurial repository.
I don't want my controller clones actual repository during unit testing