did some fixes of unit tests on windows