I'd go to the teacher and tell her what your daughter told you. You won't be accusing anyone; you'll just be reporting what was reported to you.

Keep your tone neutral and use the conversation as an FYI thing for the teacher. Then the onus will be on her to keep the girl away from the others when testing is happening, and the matter will be out of your hands.