adds some agent validation and test cases