Fix tests on MSVC.