Fix for public key test