Confirm the TPS is installed properly. Sometimes it does not rotate if in the wrong position. With the ignition on press, the accelerator pedal and either use a multimeter on the sensor wires or using a scanner make sure the voltage is approx 0.6v with nothing pressed then press the accelerator pedal to “wide open throttle” position. At wide open throttle, it should be approximately 4.5volts. If these are correct then Make sure IACV is set to the middle point of the 2 screws making sure there are no air leaks in the throttle area. You can use some silicone to ensure that.
Some vehicles (like Chevrolet) require a throttle reset through a scanner. It will never run properly until you reset using the scanner. Taking the battery terminals doesn’t work either.
If everything is good and still have black smoke then try replacing MAP/MAF sensor. that should cover it. If problems persist then send me an email with a snapshot of diagnostic voltages at idle (running engine) and another snapshot after quick heavy revs... it gives the max and minimum of each sensor which is what I would like to look at.