unit test for curve_bezier_decompose