Absolutely and without a doubt complain, and possibly sue; in the meantime, you ARE still allowed to take AP tests; I'm not sure where the cutoff is, but my sister took at least one after graduating from High School; you are also allowed to CLEP stuff. Both are credit-by-exam type things; if you learn well on your own once you're told what you need to cover, then it's a lot cheaper than taking, for example, noncredit math classes.
On the other hand, spending 1/4 of what would have been tuition on a test you won't pass doesn't make sense; so do whatever you have to in order to learn the way you learn best. Also, do some research; if you end up sueing, getting others who've had the same problem to weigh in could make a legal difference. The other thing is, in some places they "track" students from day one; and the non-college track doesn't get the same level of education, even if they're not labeled as special needs or whatever today's label is. It could be harder to prove they screwed you if your level of education is comparable to that of a different set of people, even though what was appropriate for you would have been a higher level.
I had a related but reversed problem; as a college-track student, I was not allowed to take useful electives like auto shop, when I would love to have been able to learn to take care of my own car as a high school student just 'cause it would be so useful to know... as a poor, starving college student.