Fixed direct running of git command, changed tests to add missing mock data