Some legitimate medical tests, not part of the normal pelvic exam, do involve touching of the clitoris. One example is the bulbocavernosus reflex test, performed to assess nerve function in the bladder, particularly around the sphincter.
"Bulbocavernosus reflex test. To test nerve function, a gloved finger is inserted into your rectum and then the penis or clitoris is gently squeezed."
There are several links to this, such as: