Testing of circuits in sensor or actuator systems