improve log
improve AgentDemo, add test for ScheduledExecutorService