That is why standardized tests are needed.
Standardized tests AND school choice would be a good start. Make union membership voluntary not compulsory would also help the situation.