Or a threat?
Either way, yes!
But the rights of a community or group are more important than the rights of an indivudual.....The indivudual who has taken the drugs and committed crimes to pay for them.
So- yes! to drug testing....
Legalize the drugs, tax them, use that money for treatment and to pay for the test costs.