Convert more tests, fix test_imagewin.py