I have the diagram below. Wire 4 has a phase of 120VAC and N is the neutral. I need to test several lights that turn on individually each one using different contactors that are activated by sensors (simply switches) using a single switch called lamp test that when pressed turns on all the lights. Diodes are used in the diagram, but as I understand this, as it is in the diagram, it should not work because the alternating current is not constant but varies in time in a sinusoidal way.
How can I solve this so that the lights turn on with the test button?