ISPN-2665 - Multiple tests in ReplSyncDistributedExecutorTest failing randomly.

The corresponding test is changed to be more robust.