Here's how I'd test to see if the student used ChatGPT to cheat on their exam. I would go to ChatGPT and ask it various prompts to write a paper fulfilling the assignment. Then, I would compare the output with the paper the student submitted for similarities beyond coincidence.