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