To test input pins, we would usually recommend using a working limit switch or component. Which would allow you to view the current pin, for any problems or incorrect setting with the control software.
When you wired the e-stop to pin 10, you did wire it in as normally open and also designated the correct pin to the e-stop in the control software?
We also have noticed how sensitive limit switches and e-stops can be to noise around the system and through the wiring. We would recommend using a shielded cable and wiring/routing away from any other wires(power, communication, etc.).