added replication unit tests