Port tests to windows and add to cmake build.