Add more debug info to test agent

*** DO NOT MERGE ***