Added a unit test for issue 81.

As promised, here's a unit test that showcase issue #81.