[fix] Fixing unittests for Windows.
Closes #3880