Test coverage: last branch untested from PublicKey