Address todos in https://github.com/dotnet/runtime/pull/69225: - Add tests. - Determine a better way to detect the dynamic methods to avoid any potential naming collision.