test operate() method of ShapeInstance