Fixed two test that were failing with a i18n setup

With a fresh project, if you switch ``USE_I18N`` on in ``settings.py``, ``test_login_required`` fails as it expects redirection without a prefix and does not handle ``next`` encoding (which also contains a prefix and slashes).

If you further change ``patterns`` to ``i18n_patterns`` in the project's ``urls.py``, ``test_password_reset`` fails as the link in the password reset email contains a language prefix.