utest: fix all failed tests and add new tests