I agree about the tests. Also, I grow on an urban lot, tested for positive lead in two places. My solution is to plant
trees and berries, my research indicates lead is taken up into leaves and
roots but not the fruits and seeds.
For leaf and fruit crops, 18" of raised beds with new soil is plenty deep.
Lastly, I am adding
wood chips and autumn leaves, as deep as possible.
It was am easy choice to simply avoid planting into my soil, as it contains the remains of a demolished house, and every shovelful of dirt is 75% urbanite rubble.
But you
should test your soil in multiple places, and hopefully you can just plant into the ground as you please.