refactor UnitTest(Validator) to keep a mapping of the parsed agents