They can test it for resin and any amount at all is illegal. The bags are going to stand up as well and if they werre dicks they could have charged you with possession for residue in the bags. How old are you. You most likely will be put on a program where after 1 yeard and 1 drug test(randomly) it will be expunged from your record. Either that or community service . Either way save up fines for a lawyer and court fees are a BITCH!!!