Fixing the MonitorTester to support complex monitors like PSM/MTM

This is the class behind the command line tool called poller-test.