Add unit tests for _current_commit and _get_list_of_committed_files

Tests can be run with "nose2" from the repository root, all tests
pass.