migratebundle: use Replacer instead of Map in test code