gofmt code and add test + travis-ci config