Added a test case

Test case for pull request #2764