Introduce wait for replication events to reduce flaky tests Pull-replication tests also rely on the reception of replication events that could be received asynchronously. Add a wait cycle so that flakiness associated with events assertions are stable. Change-Id: I8ee76d0a7d6b684a93e07dfbb2d6cd68c433cfbd