Test (and fix) for circular replication