FBI Agent Testifies About Undercover Role in Terror Probe