Yes, they can all trigger the common drug tests for amphetamine. Drug testing is typically a two-step process; the first step uses a color-changing test (much like a pregnancy test.) *If* that test shows a positive, a second test will be run (using a big expensive lab machine called a GC/MS) to double-check that it really is amphetamine (or whatever) and not a false positive. The first (screening) test can't tell the difference between MDMA, amphetamine or meth; they'll all show up as a positive for amphetamines. The confirmation test, however, will nail down exactly what it is.
Interesting development, I was recently tested using a "First check at home drug test" that claims it can differentiate between MDMA and other amphetamines. Well it turns out that it can in fact differentiate between the two.
Two days before my surprise test I rolled. The day before my test I did not take my methylphenidate. I tested clean for methamphetamine, and positive for MDMA.
This is not terribly important information but I just thought it should be put out there that there ARE at home drug tests that can differentiate between MDMA and other amphetamines.