The plug with the pig tail is the correct one to hook up for tps function, The plug on the throttle body is more or less a switch to tell an automatic trans that the throttle is closed it is not needed for what you are doing. If you plug the feed to the IACV and the engine dies that it is most likely not a vaccum leak, it is probably your IACV.