add tests to bezier formula