add test for clipping