Fixed some tests to work well with MSVC.