add test.py and modify max point on a line