Added tests for the xpub_from_xprv function.
Documented pw_decode bug

Seems like pw_decode does not reliably raise when supplied a wrong
password. This is unrelated to this branch, but I still added some
comments.