I admire your patience. Time to start getting them to commit to a finish date. Also get them to detail exact costs, parts used etc so you can go back and negotiate for the time/frustration. Point being, if they fitted parts to fix the fault before diagnosing the wiring harness the originals may be perfectly fine. You're in a pretty good position and Great to hear that you've got that sorted. The first port of call for the stalling will be the TPS and CO reset, very easily done if they've got a Mathesis system in house. If that fails then it may need a tweak to the cam timing. Lots of threads about this on here.
Great to hear you have a functioning bike once more. Can't help wondering what the original fault was...
I have all but eliminated this by setting CO. Well what I actually did was have two exhaust bungs welded on and I fitted two AFR meters with lambda probes and set afr to 14. AFR actually fluctuates slightly, between 12 - 14, before the change it was between 10-12 so no wonder it was running poorly.