Improve testing of elliptic curve validation