[TODO-LIST #006] Yanmin:add some tests.