Add unit tests for elliptic curves, and some convenience constructors