there are reagents that can be used to test. I've never used one because I trust my vendor. LSD is almost never cut with stuff (the illegitimate listings usually completely replace with something stupid like NBOMe). Usually if you get real LSD it's not also adulterated. If my vendor were illegitimate I would have died by now since I've taken up to 16 doses at once before.
I am sure there are ways to test this but I wouldn't trust myself. Not to mention the illegality of it.
At this point, it is simply criminal MDMA is not available for therapy the way ketamine is.