is it true that heavy metals in ones body can cause thyroid problems?

are there tests for heavy metals? are there treatments for removal of heavy metals in ones body? what are the test? what are the treatments?