TESTS: added regression tests for issues #161 and #162
TESTS: added regression tests for issues #161 and #162

vehar/red,red-eco/red,vehar/red,iArnold/red,NikolayShubenkovProgSchool/red,rheber/red,iArnold/red,red-eco/red,rheber/red,NikolayShubenkovProgSchool/red