utest: fix build errors
utest: add more unit tests