test a public key