1. When a charged object is brought near a neutral object, it gets attracted when two oppositely charged objects are brought close, they get attracted. Therefore, attraction is not a test.
2. But when two like charges are brought close only then repulsion takes place.
3. Therefore, repulsion is the sure test for identifying an electrically charged object.