fix error, add fail test

Signed-off-by: eggfly <lihaohua90@gmail.com>