"teaching to the test"
I don't suppose you even have any idea what that meant, and why it was supposed to be bad. So, for your benefit, and for the benefit of any interested readers, I'll note:
I doesn't mean "learning"
Using a test to define the curricula is not itself a bad thing.
If, as is common, a test helps teachers and students focus on the intended subject matter, that is a good thing. It doesn't magically become a bad thing just because some under-educated teacher has learned the phrase "teaching to the test" only as an insult.