Test public key.