To test Switch #57, take all the balls out of the machine and go into switch test mode, then lift the playfield up into the vertical resting position and with one of you metal balls move it over the sensor circuit (see the red arrow in the below picture). If the sensor switch is working, the LED on the sensor board should light and the DMD will indicate that switch #57 has been triggered.
TZ Switch 57 prox board (resized).jpg
When you say that you exchanged the sensor board, do you mean that you took the sensor from a working TZ pinball machine and put it in your machine to eliminate the sensor board being the issue? If you know that the sensor board is working 100% however you are getting intermittent (ie random) triggering of the switch, then try removing and reseating the connector on the sensor board and testing again.
Let us know how you go