Added test for function piece-shape.