Test case for #219.
Merge pull request #355 from pyykkis/test-case-for-219

Test case for #219.