tests: made all tests pass on cygwin. Fixes #655