Check switch is working