fix unittests errors