Migrated test to new UiProviderFactory API.