test with public key