The barbarians have fewer resources and fewer educated minds than does North Korea and Iran.
North Korea and Iran will therefore have workable nukes *BEFORE* Al Qaeda.
Neither North Korea nor Iran has reached the point where they are comfortable testing a weapon, for whatever technical or geopolitical weapons...
...And considering the U.S. nuclear response in retaliation for an attempted nuclear attack (ditto for Israel and Russia), you can rest well assured that North Korea and Iran will each perform at least one nuclear test prior to an attack.
No atomic test = no atomic attack
"North Korea and Iran will therefore have workable nukes *BEFORE* Al Qaeda."
They might have workable nuclear programs before AQ. But AQ is not trying to become a nuclear superpower, just to terrorize one.