add test and implement git-branch and git-version