[WIN] - Make all tests pass

Wanna see how these do on appveyor
Can you make this a util function so it can be shared? Seems like this is used a BUNCH of times (which makes sense).