[TEST] Unit-test `PaintingWindow` class.

This PR fixes issue #33.