Add test for pull request #7