added testcase in agent module