standby test and fix some bugs

TestStanbyBecomeParticipantBySync