Add a test for replication.