Fixes test 'test_repo' cleanup
Fixes checking of the diff padding in 'test_commit'
Fixes sorting of the git objects