Add tests for dynamic attribute replacer