added test for painting with border