windows test fix

most of the test work, and this fix should not interfere with unix tests