Most, if not all, heavy metals are bad for your tank. I don't think there is a really good way to test for them, the best thing would just be to avoid their introduction entirely. Describe/show us the rock you wish to use and there should be someone who can tell you if it should be good or not.