test for public key