[PATCH v5 19/26] auto-t: update testAgent to use TestContext