Fix windows specific tests and make them run on all platforms