Either plant a few bean seeds in the pile, or in cups of the stuff and see how they grow. If there is herbicide contamination, the beans will grow in a twisted, gnarled fashion.
You can read more about herbicide contamination at
www.manurematters.com - the site belongs to Dow Chemical.