Fix #1198
Unit test
Merge pull request #50 from sjinks/issue-1198

Issue 1198