Seperated Agent and TestController logic