Updated a few tests and added a little more functionality to public key class