fixed mocha test

Signed-off-by: miaojian <kitemao@gmail.com>