Add inheritedini.go and test codes