Added replication tests