Give bonuses and raises to teachers who's students perform well on standardized tests? That just encourages teaching to the book.
Student evaluations? Then the teachers are obliged to suck up to the students for good ratings.
Leave it up to administrators? That creates huge potential for bias and currying for favor. At least when that happens in a for-profit company, the free market will shake out the worst cases eventually.
Seniority is not a great way to determine pay, but it's not an absolutely terrible way either, as generally, more experienced teachers ARE better teachers.
I don't actually know how long the teachers I had in grade school had been teaching, but if experience can be roughly estimated by age then I am not convinced there's any correlation between experience and quality. I had a lot of great young teachers and a lot of rotten old ones.
PS: Students at the edges students will tend to regress to the mean, so you can still measure performance on a class that scored 95% last year.
Further, you can "teach to the test" by giving students only classes of problems that will appear on the test and drilling them in that and little else. I imagine that you could end up with lots of functional-illiteracy type issues where students would only be able to do a task in the tightly controlled circumstances that they have been trained on but have difficulty generalizing.
A simple multiple choice test covering vary limited subject matter is one option, but we can do better than that. I remember taking a vary comprehensive series of tests when I was !10 years old that included such things as attempting to sound out words that don't exist in English. Granted, the possibility of extremely high quality testing in this country is one thing, I suspect the actual creation of standardized tests in the public school system has become extremely political.
PS: I think AP tests are fairly good indicators of their subject matter. Even teachers who "teach to the test" still cover the subject to an acceptable degree.
Wikipedia link on validity:http://en.wikipedia.org/wiki/Validity_(psychometric)#Factors...
And if you pay for seniority, you're rewarding people who know how to make themselves hard to get rid of.