I don't know about THC, but I've been tested positively for Amphetamine before and didn't take it or any medication that is a structural derivate of it. This is a problem that is not very well known, even doctors rarely know how unreliable drug tests can be. Amphetamine-derivates for example have one of the highest percentage of false positives: ~15% -- a lot of molecules in your body have a structural similiarity with the metabolites of the substance.
If you are ever tested positively for an Amphetamine-like substance, and you know you didn't take it -- you should insist on a second test right there on the spot.