replication and tests