getting replication tests working