If you were offered the job but were told that you had to complete a urine test, then the job offer was conditioned on the test. If you did not or could not complete the test, the employer would not be obligated to provide you the job, since you did not complere a condition precedent to being given it.