refactored CreateCommitOnTestRepository to GetLastHashCommit and unit test