Terror testimony barred from trial