update set and add, more test cases