fix bugs, unit test of generate user operation keyword