update test code

merge code from trunk.

Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>