Added bezier functions and tests