Added some more unit test for `PaintingWindow`.