Test code 'Replace Elements'