test keypair generation