Add unit test for issue #38
Merge pull request #39 from Magrath/issue-38

Add unit test for issue #38