torture: Add tests of rename behaviour to replica_sync.py