Add a test for the failure condition of EC_KEY_new_by_curve_name