Controlling, signalling or testing correct functioning of a switch