Testing digital circuits including elements other than semiconductor transistors