It's purpose was to let people get good places in the government if they passed, but the only people that could take it were people that were already recommended into the government, so the rich and influential continued to run the government and the test was based on Confucianism.