Windows

 - Fixes the tests to work on windows
 - Adds appveyor config for CI