convert tests and build to support running on windows
remove some debugging output