Moved duplicated code that returns a URL params array keeping the invitation_token if present to a helper method.
Adapt acceptance tests to the changes in i18n strings in commits 3967fa102466f9690acc8de6eaf50f492f82222b and 95de1fb9cdb00774cf020ccec10dff27bc0bd22b