fix update in Goalitem and add update test
Merge pull request #228 from ICTKyouikukei2013/yamamoto/fix-goalitem-update

fix update in Goalitem and add update test
Merge branch 'master' into yamamoto/graph