Add testcase for agent class scope attribute