separate test files and self-fix test

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