add test for testing IsOnCurve