Fixed pages.test_login_required with I18N / LocaleMiddleware.