added keypair tests