[tools] testbot/TestAgent: Add documentation for new().