Corrected agent test structure and consistency