Fix tests to run on Windows (close #216)