add unittests for index/search, fix last bugs with git-python unicode