add debug logging
Send StartTestRun and StopTestRun in the agent.
Add a PUSH/PULL in the agent itself.

This allows to send stopTestRun just once, when all the tests are done.
Count the number of tests finished before ending.