TESTS: added regression tests for issues #290 and #293.
TESTS: added regression tests for issues #290 and #293.

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