Fix tests

- Fix typographical error
- Add mock method for pubkeyhash_to_pubkey