Two small fixes in agi-test example: A typo and a test case.