diff --git a/submissions/test_views.py b/submissions/test_views.py
index 8ad905f9257ea7974f2cb44d5cb60c0b6d506b11..bc72aeb2f565e557261ac057d992a31669c0b469 100644
--- a/submissions/test_views.py
+++ b/submissions/test_views.py
@@ -15,7 +15,7 @@ from .factories import UnassignedSubmissionFactory, EICassignedSubmissionFactory
                        ResubmittedSubmissionFactory, ResubmissionFactory,\
                        PublishedSubmissionFactory, DraftReportFactory,\
                        AcceptedRefereeInvitationFactory
-from .forms import SubmissionIdentifierForm, ReportForm. SubmissionForm
+from .forms import SubmissionIdentifierForm, ReportForm, SubmissionForm
 from .models import Submission, Report, RefereeInvitation
 
 from journals.models import Journal
diff --git a/theses/test_views.py b/theses/test_views.py
index 382afb4b1b09740baacf96164033d42cacdf1a62..1801a47ac0d267c3a484ff202fc4813543e6c8f9 100644
--- a/theses/test_views.py
+++ b/theses/test_views.py
@@ -43,9 +43,14 @@ class TestRequestThesisLink(TestCase):
         self.target = reverse('theses:request_thesislink')
 
     def test_response_when_not_logged_in(self):
-        '''A visitor that is not logged in cannot view this page.'''
+        '''
+        A visitor that is not logged in cannot view this page and is redirected to login.
+        '''
         response = self.client.get(self.target)
-        self.assertEqual(response.status_code, 403)
+        self.assertRedirects(
+            response,
+            expected_url='%s?next=%s' % (
+                reverse('scipost:login'), reverse('theses:request_thesislink')))
 
     def test_response_when_logged_in(self):
         request = RequestFactory().get(self.target)