enabled build for windows
added test function