test for repaint