Test replication with declared_attr