which dynasty did not use the civil service exam and instead gave key government jobs to friends and family members?