That's right. Because of differences in the law, you can get tax-exempt operations and opportunities for tax avoidance, even in dealing with a large country with a complex system.
The point, as I mentioned, is that every country has their own rules, and these rules are different. That's why you need a tax treaty to reconcile the rules. Unfortunately, our present tax treaty with the United States does not reconcile the treatment of these partnership/corporations.