Add some logging to test agent

*** DO NOT MERGE ***