So opto #4 is always closed in switch test?
Did you swap both transmitter and receiver opto?
Have you tested wire continuity for the receiver to ground and to the board connector?
With the balls in the trough during switch test you could easily jumper on of the other signals to opto 4 pin.
You should be able to jumper the 12v to that pin in switch test too but I’d need to look at the schematic to be safe.