ProxyCurve implementation and some tests.