Replacing a membrane switch with a relay for automated testing