Modified some tests to work well with MSVC.