Fix ControlCommandsTest to don't hang from monitor test because of timing issue

* In monitor command test, input thread waits for monitor thread to monitor
** Monitor command test sometimes hang when input thread run earlier than monitor thread.
Merge pull request #516 from HeartSaVioR/fix-timing-issues-with-monitor-test

Fix ControlCommandsTest to don't hang from monitor test because of timing issue