Windows compatibility for tests