that was funny ) I thought may be a production forum 2.1 and a duplicated upgraded to 2.2 in /test could somehow conflict, co I created subdomain test, replicated production one there and upgraded to 2.2. And I see the same problem.
Then I unchecked ' Enable board URL canonicalization' and the problem has gone.
Everything works. I forgot to disable add-ons before upgrade. )