Add api-test script and test that curve name passed in is valid.