add test for agent server