A terrorist who launched a bomb attack on Glasgow Airport left a will addressed to Osama bin Laden, a court heard.