added test case
Merge pull request #1072 from cm-jan/issue-1071

added test case