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

Add unit test for issue #38
Fix #38 in master (2.4)
...