ticket: 3 middleware test fixed