Thousands of California drivers are being ordered to retake their knowledge tests or risk losing their licenses.