[REM3-170] added test 

This is test for [REM3-170], and it was already merged to 3.x branch. I forgot to send the PR to master, so sending it now.