[TwigBridge] fix `DumpExtension` tests

Make test compatible with the changes from #12125.