Prevented stack overflow in test file on Windows