This is a surprisingly common thing that people with food allergies deal with. My partner is allergic to bananas, (they’re closely related to latex, which is an extremely common allergy) and has had anaphylaxis triggered multiple times from people trying to test it. People just randomly hide bananas in gifted food, to see if they’re really allergic. It has happened so many times that my partner actively refuses to eat baked goods unless they saw it get made.
The worst part is that the allergy runs in my partner’s family. So it’s not like they’re the only one who is allergic.
I’m convinced it’s due to projection. The people prone to lying are likely the ones who feel the need to test it, because they assume that everyone else lies a lot too.