There is an ignition test for those motors at the CDI Electronics web site. It assumes the coil is good, and tests the battery-powered CDI switchbox and wiring. It does not test the trigger, but tests all other components. I suggest you run this test.
If no spark during test, the switchbox...