Fix linker error in unit tests in debug mode on Windows

Bug was introduced in 0c0c4a43c8d313c0dfb265c970e4a60f23416daf