Added test for pull request #47