ctp:ctpagent/ctpapi/testctp: add and update

1) adjust functions to use order and errorder map.
2) adjust to use the given logger by agent.
3) add tests to cancel commands.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>