MODE-1676 - Added regression test case

The problem described in the JIRA issue cannot be reproduced anymore, this PR adds a regression test.