The agent said Shnewer took a circuitous route and at one point stopped and turned around in what could have been an attempt to shake investigators who had him under surveillance.
Later, prosecutors played videos taken from Shnewer's computer that showed attacks against American troops in Iraq and Afghanistan.
The five defendants are all foreign-born Muslims who lived in Cherry Hill, N.J. They were arrested in May of last year.