Tests for ensure_authenticated middleware, if the request.isAuthenticated() returns false - it redirects to the login page