To test whether a given rod is made of iron or copper, we should bring it near (or in contact with) a magnet, if the rod is of iron, then it will become a magnet i.e., it will acquire the property of attracting iron fillings when they are brought near it’s ends.
This happens because iron rod gets magnetized when placed near a bar magnet by magnetic induction, while copper rod does not get magnetized. This way, we can detect which rod is iron and which is copper.