Fixed bug in unit test that was causing it to fail on MSVC (it worked by coincidence with GCC)