Fix log error when run unit tests in windows