Test case for the issue MODE-1798