To test whether a given rod is magnet or not, we use
Repulsive property of magnet
Repulsion is the surest test. A permanent magnet causes repulsion when a pole of a magnet is brought near the same pole of another magnet. An unmagnetised magnetic material (like iron, steel, etc) would be attracted to both poles, so we can't use the attractive property of a magnet to test for magnetism.