change test code;
provide sample code into readme.md

Signed-off-by: Yin MingJun <yinmingjuncn@gmail.com>