fix a small bug with load_publickey (#481)

* fix a small bug with load_publickey

* update docstring, rename test method

* make hynek happy
2 files changed