Fixing the MonitorTester to support complex monitors like PSM/MTM

This is the class behind the command line tool called poller-test.
Fix for Enhancement NMS-6626

If the HostResourceSwRunMonitor fails because of a timeout, the reason
does not reflect it.
Merge remote-tracking branch 'origin/1.12'
fix 1.12 -> master merge issue