fix sync listdiff and add more test cases