ticket:3 missed () in middleware, added new middleware to settings, correcting tests