tests/unit: unit test failed because interfaces were changed.

This patch only let 'make check' workable, does not add any cases.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>