Refactoring initiate replication. Incoming tests