Tests to weed out trainee surplus