This website outlines some of these steps, including how to get your soil tested for heavy metals, and also outlines the results of a project that tested soil of 100 vegetable gardens in San Francisco that looked at heavy metals in relationship to race/ethnicity, income, and other factors.