If you found it growing, it either wasn't mature enough or you didn't cured it right, or it was just ditch weed.

But to answer your question, police have a test to tell if weed is weed or not, just like they do with cocain. I've definitely seen it on COPS. They put it in a tube or something and if it turns purple or some color then it's marijuhwana.