Add test for 'pass' case on LoginRequiredMiddleware.