Fix typo in curves
Cleanup tests, add named curve tests