What I gather is that you were not "driving" a CDL vehicle for the test, so they cannot give the test and issue a CDL.
When I got my first CDL, I went through a small private company that both rented the vehicles for the test and was certified by the state to give the test. I was taking the...