Those actions is considered as harassment.
People who became the 'victim' of the joke has the basis ground to bring the case to the court under 'Hostile work environment' harassment law.
In united states, this type of case could cost the company a loss of $12,000 in Average cases.