Fixed a test to work with MSVC.
Merge pull request #413 from TsudaKageyu/msvc-tests3

Fixed a test to work with MSVC.
Fixed some debug messages.