[secp256k1] Merged PR from hebasto: cmake: Clean up testing code https://github.com/bitcoin-core/secp256k1/pull/1554