PhatClient: Add a way to retrieve hashes + fix tests