fix agent resolvement in TestValidator and add missing error