Fix minimum number of expected fields
Refactoring CreateTestRepository

Now each git command is a function