Add unit tests for painting commands.