Added a test that PublicKey types can't be parsed from different types.