ticket:3 for https://trac.42cc.co/agiloprojects/42-test-vechnoe2/ticket/3

Add middleware test.