Unplug TP sensor connector. Check for continuity between specified terminals of connector. There should be continuity with throttle closed, and no continuity with throttle open.
In addition to idle switch function, throttle switch also incorporates wide open throttle switch function. To test wide open throttle switch function, check continuity between Green/Red wire and Black/Red wire terminals of throttle switch connector. There should be continuity with throttle fully open (at least 50 degrees), and no continuity with throttle closed.