Added helper functions.
Modified test.py to check max number of Beziers.