Windows: Fix failing unit tests Upstream-commit: 3e14070c880dc1f3d9ca81c55f84ccebe8d89ad2 Component: engine