Fix testcases of #87, test update name and fix bug