For those who might not get the reference: https://www.xkcd.com/1053/
ISTM the advertising, entertainment and social-media industries are aiming to fulfil much of the role of BNW's drugs, and the pharmaceutical companies can probably cover most of the gaps.
It doesn't need totalitarian gov. at all.
Artificially and massively genetically engineered and bred into categories, not sorted. It's an important distinction.
A lot of people have no idea what to do as a career, so both an IQ and a Big Five test may allow people to know more about themselves. I know Myers-Briggs is unscientific, but something like it could also help in determining good career paths.
Have one test towards the end of elementary school and another at the end of secondary. (People can of course take them more often if they wish.)