add/fix unit tests fix e2e tests update doc & add unit test Signed-off-by: roy wang <seiwy2010@gmail.com>