Refactor debug code, move the display message from remote to controller,
Merge send query into testbed command