Add testagent example and test case.