How do you test if a switch is working