fix sync tests

This is a workaround. GenID used inside sync gets random from
system, and the time varies a lot.
It will be fixed when we move to good id generator.
action[0] is a string and cannot use `[]`