Fix an uninitialized variable in the tests, gets rid of a warning on the windows build. Fix an error with the unit tests on Windows.