add tests for public keys