Add test for pull request #284