test cubic bezier and arc length