ISPN-2608 VersionedDistStateTransferTest intermittent failure

Wait for state transfer to end before checking the results
ISPN-2515 VersionedReplStateTransferTest.testStateTransfer fails randomly

Wait for state transfer to end before checking the results