Added a unit test for issue #51 and fixed it to actually work