fix tests for pubkey