The order signed by U.S. District Judge Mary Lou Robinson in Amarillo on Wednesday will send pilot Clayton Osbon to an unidentified medical facility for federal prisoners. There, he'll undergo tests to determine if he was legally sane on March 27 when passengers subdued him after he allegedly sprinted through the plane shouting about Jesus and Al Qaeda.

The exam also will determine if Osbon, 49, is competent to stand trial.