test_print fixes for windows