Test public key