Create minimal TextField.
Check if running as main before running test.