Fix tests on windows

Closes #188