fix MSVC compiler warnings for unit tests