TEST: unit-testing of `PaintingWindow`.

This PR fixes issue #33.