Fix all tests that depend on replication_port