[Tests] Fixed all regressions in unittests.