test-implementation of parsing of public key