Added basic windows test. Fixed window API.