This MR fixes several problems on Windows CI including compilation failure and test bench regressions.