Sounds like the sugar cookie test is a way of filtering out people who won't blindly accept arbitrary rules from authority.
Quite a non sequitur there.
As mentioned during the speech, Adm. McRaven was describing his own SEAL training. Since SEALs are an elite branch of the US Navy, individuals have to explicitly volunteer to enter SEAL training, are screened to a very high standard, and are warned well in advance that the training is extremely taxing, both physically and mentally.
They are also conditioned not to question the training, or the missions, or anything much, for that matter.