MODE-2029 Added test case to verify the behavior reported in the issue.