fix hmset error and add test case