Added some tests for paint messages and update regions.