The court cannot order a hair follicle test unless you agree to it. The law only gives the court the ability to order a urine test.
I strongly suggest you get the parenting class done right away. It sounds like the court wants a co-parenting class and there are several options in your area. Solutions for Families is a good program along with several others.
Sign up to receive a 5-part series of useful information and advice about child custody law.