test permission (publickey)