adding test case for persisted replication