UI wrapper is optional if generateTopLevelExtensionMethods is enabled.
Test cases simplified.