Add createKeyPair() for signing, with a basic test