It was very dangerous for you to refuse to sign up for community detoxification at the beginning, because your local police station can completely enforce detoxification for you on this ground. But luckily they didn't.
as for asking you to have a urine test now-this should be the case, if you have nothing else to do-this is also a normal procedure. No matter whether you have signed the procedures for community detoxification, they will regularly check the registered drug addicts in their jurisdiction, which is stipulated in the law on mental rehabilitation. I'll probably be looking for you for three years.