fix git home, and add test