fix  bug for setProgress
add test code.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>