Testing and meritocracy of what, though?
Don’t forget that China chose Confucianism to put a halt to the perpetual, European style wars.
Stagnation was by design, and caught up with them after 2000 years.