How to test out or simulate slashing

How would I “make” it double sign?