add test methods

Signed-off-by: brucefengnju <brucechenofnju@gmail.com>