fix unit tests on windows
make sync calls explicit