Add a unit test for issue #49

Closes #49