Test that shows the bug
This makes the tests pass, fixes #19
Merge pull request #20 from sdebacker/master

Fixes bug #19