Fix check for public key in invite-join.test.