SLT-267 Small fix on AgentRunTest.
Synchronized access to handlerRegistry to stop ConcurrentModificationException
SLT-267 Fixed issues with AgentRunTest.groovy
Merge pull request #7 from SmartBear/run-with-stats

Merged pull request #7