-boost leak test
-compression test
-try swapping engine harnesses. if its anything of those related that u swapped, means the wiring is reason they are freaking out (knock, mafs, tps, coolant temp)
make sure the tps is reading correctly and the screws holding the sensor are tight. could be reading wrong or moving, causing wrong amounts of fuel to be in at different tps levels.