Made names and contents of files in unit tests more distinguishable. Repository now throws GitErrors if constructed on an empty / non git directory.
(cherry picked from commit e39db3e)