Testing of control circuits