Fix failing win unittests