Implement a test function to kill a unit with right clicks.