As an employer, why would you tell them?
I don't want someone to stop for a few weeks to pass a test.
As a future employee I like this too.
I know I have less of a chance working with a habitual drug addictuser and I know that people making hiring decisions have common sense about something.