Well, the TPS really has nothing to do with EGR operation, so rule that out.
To check the function of the valve itself, put a clean length of vacuum line on the EGR vacuum nipple and use your mouth to suck on the other end of the line. You should be able to hear and feel the diaphragm inside...